package com.hangzhou.xyj.net.request;

import com.google.gson.Gson;
import com.google.gson.JsonObject;
import com.hangzhou.xyj.net.request.base.BaseRequest;
import com.hangzhou.xyj.utils.constants.API;

/**
 * Created by yaohuix on 2016/4/7  18:00
 * <p/>
 * 说明：删除动态 请求
 */
public class DeleteDynamicReq extends BaseRequest {

    /**
     * 动态的ID
     *
     * @param
     * @return
     * @author yaohuix
     * @date 2016/4/7 18:05
     */

    public DeleteDynamicReq(int dynamicId) {
        JsonObject jsonObject = new JsonObject();
        jsonObject.addProperty("id", dynamicId);
        add("data", new Gson().toJson(jsonObject));
    }

    @Override
    public String getUrl() {
        return API.DELETE_DYNAMIC;
    }
}
